# Template file for 'gst-fluendo-mp3'
pkgname=gst-fluendo-mp3
version=0.10.32
revision=1
wrksrc="${pkgname}-${version}.debian"
build_style=gnu-configure
configure_args="--libexecdir=/usr/lib/gstreamer-1.0"
hostmakedepends="automake autoconf libtool pkgconf"
makedepends="gstreamer1-devel gst-plugins-base1-devel glib-devel"
depends="gst-plugins-base1"
short_desc="GStreamer 0.10 fluendo mp3 plugin"
maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
license="MIT"
homepage="http://www.fluendo.com/products.php?product=plugins"
distfiles="https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/${pkgname}/${version}.debian-1/${pkgname}_${version}.debian.orig.tar.xz
http://sources.openembedded.org/gst-fluendo-mp3-0.10.31.tar.bz2"
checksum="a01ab70957c780d6bb2e64c6f18ebb20ff2a9f35189e7d87572b6bb62d5e6413
dae0d0559a4e159c0dd92b7e18de059a5783f8d038904c7de4ca6393f7d55c7d"
skip_extraction="gst-fluendo-mp3-0.10.31.tar.bz2"
patch_args="-Np0"

do_extract() {
	cd ${XBPS_SRCDISTDIR}/gst-fluendo-mp3-0.10.32/
	tar xvjf gst-fluendo-mp3-0.10.31.tar.bz2
	cd gst-fluendo-mp3-0.10.31/src
	mv mp3-ipp.c mp3-ipp.h table-dewindow-ipp.h ${XBPS_BUILDDIR}/gst-fluendo-mp3-0.10.32.debian/src
}
